package org.zoffy.thread;


import java.util.concurrent.*;

public class AssistantThreadPoolUtil {
    private static final ThreadPoolExecutor assistantExecutor = new ThreadPoolExecutor(4, 4,
            1L, TimeUnit.MINUTES, new ArrayBlockingQueue<>(1000), new ThreadPoolExecutor.CallerRunsPolicy());

    public static <T> Future<T> submit(Callable<T> callable) {
        return assistantExecutor.submit(callable);
    }


}
